SPB Git forge

spb/hilmacorp

Public
1commits 1branches 0releases
29.2 MBsize
maindefault branch
20 days agolast push
TypeScript 93.3% JavaScript 4.4% CSS 2.3%
1.0 KB · 41 lines tsx
Raw Blame History
1/**2 * Author: Simon-Pierre Boucher3 * Contact: contact@spboucher.ai4 * Project: Hilmacorp.ai — Web Platform5 * File: app/[locale]/terms/page.tsx6 * Description: Terms of Service page (bilingual legal document)7 */89import type { Metadata } from "next";10import LegalPage from "@/components/LegalPage";11import { getMessages, isLocale, type Locale } from "@/lib/i18n";1213export async function generateMetadata({14  params,15}: {16  params: Promise<{ locale: string }>;17}): Promise<Metadata> {18  const { locale } = await params;19  if (!isLocale(locale)) return {};20  const { meta } = getMessages(locale);21  return { title: { absolute: meta.terms.title }, description: meta.terms.description };22}2324export default async function TermsPage({25  params,26}: {27  params: Promise<{ locale: string }>;28}) {29  const { locale } = await params;30  const { terms } = getMessages(locale as Locale);3132  return (33    <LegalPage34      title={terms.title}35      lead={terms.lead}36      lastUpdated={terms.lastUpdated}37      sections={terms.sections}38    />39  );40}41